package com.ssca.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AliasesDAO {
	// public List<Integer> find(String s) throws Exception;
	// public int findSource(String component_class) throws Exception;
	// public int findDes(String target_class) throws Exception;
	public Integer findComponentId(@Param("pkg") String Pkg, @Param("class") String Class) throws Exception;

	public List<Integer> findTargetIdIgnorePkg(String Class) throws Exception;

	public List<Integer> findComponentIdByURI(@Param("authority") String authority) throws Exception;

	public void insertIntoAliases(@Param("sourceId") Integer sourceId, @Param("targetId") Integer targetId)
			throws Exception;
}
